<%@ page language="java" contentType="text/html; charset=utf-8"
	pageEncoding="utf-8"%>
	<jsp:include page="../../../inc/js.jsp"></jsp:include>
<jsp:include page="../../../inc/xheditor.jsp"></jsp:include>
<script type="text/javascript">
	$(document).ready(function() {
		$.get("getSelect.do",{type:'6',index:'${o.kind}'}, function(data){$("select#kind").append(data);});
		$("#buildDate").datepicker({
			dateFormat:'yy-mm-dd',
			changeMonth: true,
			changeYear: true
		});
		$("#save").button().click(function() {
			$('#f').ajaxSubmit(function(data){
				alert(data);
            });
            return false;
		});
	});
</script>
<form action="updateCompany.do" id="f" method="post">
<fieldset>
	<legend>基本信息</legend>
		<div><label>用户名</label><input type="text" readonly="readonly" name="loginName" value="${o.loginName}"></div>
		<div><label>公司名称</label><input type="text" name="cName" value="${o.cName}" class="long"></div>
		<div><label>企业性质</label><select id="kind" name="kind"><option>请选择</option></select></div>
		<div><label>成立日期</label><input type="text" name="buildDate" id="buildDate" value="${o.buildDate}"></div>
		<div><label>注册资金</label><input type="text" name="money" value="${o.money}"></div>
		<div><label>注册员工数</label><input type="text" name="employee" value="${o.employee}"> 人</div>
		<div><label>公司主页</label><input type="text" name="homePage" value="${o.homePage}"></div>
		<div><label>简介</label><textarea style="width: 600px; height: 300px" name="summary" class="xheditor-mini" >${o.summary }</textarea></div>
</fieldset>
<fieldset>
	<legend>联系方式</legend>
		<div><label>联系人</label><input type="text" name="linkman" value="${o.linkman}"></div>
		<div><label>联系电话</label><input type="text" name="tel" value="${o.tel}"></div>
		<div><label>传真</label><input type="text" name="fax" value="${o.fax}"></div>
		<div><label>电子邮件</label><input type="text" name="email" value="${o.email}"></div>
		<div><label>QQ</label><input type="text" name="qq" value="${o.qq}"></div>
		<div><label>地址</label><input type="text" name="address" value="${o.address}" class="long"></div>
		<div><label>邮编</label><input type="text" name="postcode" value="${o.postcode}"></div>
</fieldset>
<button id="save">保存</button>
</form>
